package com.repu.pubmedspider.Controller;


import com.repu.pubmedspider.Entity.UserEntity;
import com.repu.pubmedspider.Utils.Constant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController("pubmed")
@RequestMapping(path = Constant.BASE_PATH_PERFIX + "/pubmed")
// 表示标识这个类是swagger的资源
@Api(value = "PubmedController", tags = {"文献接口模块"})
public class PubmedController {

    @ApiOperation(value = "查询文献", notes = "通过id查询文献") //配置方法操作在swagger中的名和曾 notes为备注
    @PostMapping(value = "/selectPubmed")
    public String selectPubmed(@RequestBody UserEntity user) {


        return "";
    }

}
